package com.surpassun.emall.form;

import java.util.List;
import java.util.Map;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

import com.surpassun.emall.model.City;
import com.surpassun.emall.model.Country;
import com.surpassun.emall.model.Province;
import com.surpassun.emall.model.User;

public class StoreForm {

	private long storeId;
	
	@NotEmpty
	@Size(max = 75)
	private String name;
	
	@NotNull
	@Min(value = 1)
	private long storeTypeId;
	
	@NotNull
	@Min(value = 1)
	private long ownerId;
	
	@NotEmpty
	@Size(max = 200)
	private String street;
	
	@Size(max = 500)
	private String complememt;
	
	@NotEmpty
	@Size(max = 75)
	private String postCode;
	
	@NotNull
	@Min(value = 1)
	private long cityId;
	
	private long provinceId;
	
	@NotNull
	@Min(value = 1)
	private long countryId;
	
	private String from;
	
	private Map<Long, String> storeTypes;
	
	private List<User> users;
	
	private List<City> cities;
	
	private List<Province> provinces;
	
	private List<Country> countries;

	public long getStoreId() {
		return storeId;
	}

	public void setStoreId(long storeId) {
		this.storeId = storeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getStoreTypeId() {
		return storeTypeId;
	}

	public void setStoreTypeId(long storeTypeId) {
		this.storeTypeId = storeTypeId;
	}

	public long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(long ownerId) {
		this.ownerId = ownerId;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getComplememt() {
		return complememt;
	}

	public void setComplememt(String complememt) {
		this.complememt = complememt;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public long getCityId() {
		return cityId;
	}

	public void setCityId(long cityId) {
		this.cityId = cityId;
	}

	public long getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(long provinceId) {
		this.provinceId = provinceId;
	}

	public long getCountryId() {
		return countryId;
	}

	public void setCountryId(long countryId) {
		this.countryId = countryId;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public Map<Long, String> getStoreTypes() {
		return storeTypes;
	}

	public void setStoreTypes(Map<Long, String> storeTypes) {
		this.storeTypes = storeTypes;
	}

	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public List<City> getCities() {
		return cities;
	}

	public void setCities(List<City> cities) {
		this.cities = cities;
	}

	public List<Province> getProvinces() {
		return provinces;
	}

	public void setProvinces(List<Province> provinces) {
		this.provinces = provinces;
	}

	public List<Country> getCountries() {
		return countries;
	}

	public void setCountries(List<Country> countries) {
		this.countries = countries;
	}
}
